package com.myspringsecurity;

import com.myspringsecurity.utils.JWTUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @author DELL
 */
@SpringBootApplication
@MapperScan(basePackages = "com.myspringsecurity.dao")
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class MyspringsecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(MyspringsecurityApplication.class, args);
    }
    @Bean
    public JWTUtil jwtUtil(){
        return new JWTUtil();
    }
}
